import allure
import pytest

from page.fulanPage import FulanPage
from utils.readYamlFile import ReadYamlFile


@allure.feature('主流程回归')
class TestCase002:
    # 获取测试数据
    paramName, paramValue = ReadYamlFile().read('case_002.yaml')

    @allure.title('case_002_复深蓝')
    @pytest.mark.parametrize(paramName, paramValue, ids=['case_002'])
    def test_case_002(self, username, password, create_page):
        # 初始化page
        page = create_page
        with allure.step('步骤1：登录'):
            FulanPage(page).login(username, password)
